-
Couldn't load subscription status.
- Fork 737
[gui] Fix flutter rendering problems #4475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4475 +/- ##
=======================================
Coverage 89.46% 89.46%
=======================================
Files 240 240
Lines 13829 13829
=======================================
Hits 12372 12372
Misses 1457 1457 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
For future reference when the flickering issue is revisited, the following tool can be used for debugging: https://renderdoc.org/. |
fee3e41 to
170c93c
Compare
57a681b to
ff21dd5
Compare
ff21dd5 to
9dc6c20
Compare
|
The fix works, the flickering is gone in this PR's snap. Only issue is the following warning message and possible CPU consumption: Which appears in the GUI's logs. For this reason I would like somewhat additional testing before approval, hopefully in less modern machines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Antoni, it's good to know we have this. It's a backup if we have to release and there is no other way to fix it.
However, if we're lucky, there could be a Flutter release that does not have the issue anymore before then. If we merged this now, we'd probably forget about it.
Also, did we discuss that this occurs only in the snap? Could this be a confinement issue, or some dependency issue that would need figuring out? How about keeping this PR as a draft for now, until we dig to the bottom of the issue?
|
Sounds good. It does only occur within the snap, but I did not manage to find what was causing it. I am happy to keep this as a draft for now. |
This PR adds an environment variable to do proper software rendering within the flutter GUI. This avoids flickering problems when flutter attempts to send GPU instructions to the CPU in Mesa drivers (or possibly when drivers are not available) according to flutter/flutter#169508. Fixes #4369 (tested) when this PR is merged into main.
This solution should only be temporary until we (or flutter) solve the root cause of bad rendering, since it could impose some additional load in less modern CPUs.
Additional info
MULTI-2357